package com.itheima.springbootrequestresponse.service.impl;

import com.itheima.springbootrequestresponse.dao.UserDao;
import com.itheima.springbootrequestresponse.pojo.User;
import com.itheima.springbootrequestresponse.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * UserServiceImpl
 *
 * @author liliudong
 * @version 1.0
 * @description
 * @date 2023/7/7 20:01
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;
    @Override
    public User getByUserName(String username) {
        User user = userDao.getByUserName(username);
        return user;
    }
}
